home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 429 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.1 KB

  1. From: Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE>
  2. Subject: XFS problem
  3. Date: Tue, 17 Aug 93 13:17:23 MET DST
  4.  
  5. Steffen Engel (Steffen_Engel@pe.maus.de) came up with the following
  6. solution to the XFS problem:
  7.  
  8. In filesys.c, after
  9.  
  10. TRACE(("calling mediach(%d)",d));
  11.   r = (int)mediach(d);
  12. TRACE(("mediach(%d) == %d", d, r));
  13.  
  14.  
  15. insert:
  16.  
  17.   /* r = EUNDEV:
  18.    * maybe the drive is not based on Harddisk, so the HDdriver says
  19.    * EUNDEV.
  20.    * Ask the Filesystem for Mediachange.
  21.    * SE 16.08.93
  22.    */
  23.   if (r == EUNDEV)
  24.     {
  25.     TRACE(("request XFS for media change"));
  26.     fs = drives[d];   /* get filesystem associated with drive */
  27.     if (fs)
  28.       if ((*fs->dskchng)(d)) { /* does the fs agree that it changed? */
  29.          drives[d] = 0;
  30.          changedrv(d); /* yes -- do the change */
  31.          return 1;
  32.          }
  33.          else return 0;
  34.     }
  35.  
  36. I didn't try that yet, but it certainly looks good.
  37.  
  38. -- 
  39. ---------------------------------------------------
  40. Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
  41.  eMail: reschke@math.uni-muenster.de jr@ms.maus.de
  42. ___________________________________________________
  43.